<template>
  <div class="bar-chart">
    <div class="title">
      <h2>{{ title }}</h2>
      <!-- <span>查看更多<img src="../assets/PC/首页/组18.png" alt="" /></span> -->
    </div>
  </div>
</template>

<script>
export default {
  props: ["title"],
};
</script>

<style lang="scss" scoped>
.bar-chart {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  .title {
    display: flex;
    align-items: center;
    margin: 20px 20px;
    height: 18px;
    border-left: 3px solid #48a0b8;
    h2 {
      margin-left: 5px;
      font-size: 16px;
      font-family: Source Han Sans SC;
      font-weight: 400;
      color: #48a0b8;
    }
    span {
      position: absolute;
      right: 15px;
      width: 100px;
      font-size: 15px;
      font-family: Source Han Sans SC;
      font-weight: 400;
      color: #999999;
      line-height: 18px;

      img {
        width: 12px;
        height: 12px;
        margin: -5px 5px 0;
      }
    }
  }
}
</style>
